-- immunity2
-- created by wangy
-- 免疫中毒、诅咒（存在状态，无伤害）

return {
    -- 返回的是提升的攻击点数
    apply = function(prop, baseValue)
        return prop[3];
    end,

    record = function(target, prop, path)
        return false;
    end,

    desc = function(prop)
        local desc = PropM.query(prop[1], "desc");
        local effect = "";

        -- 这里写死
        if prop[2] == 506 then
            -- 中毒
            effect = getLocStr("poisoned");
        elseif prop[2] == 507 then
            -- 诅咒
            effect = getLocStr("curse");
        end

        desc = string.gsub(desc, "{0}", effect);

        return desc;
    end,
};